home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 05 Tactical Issues / 06 Dawson / Listing1.cpp next >
Encoding:
C/C++ Source or Header  |  2001-12-09  |  759 b   |  26 lines

  1. /* Copyright (C) Chad Dawson, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Chad Dawson, 2001"
  9.  */
  10.  
  11. // The offsets in the formation positions can be relative 
  12. // to the center of the formation or the first (lead) position 
  13. // in the formation.
  14.  
  15. struct FormationPosition
  16. {
  17.     float    mXoffset;   // horizontal offset
  18.     float    mYoffset;   // vertical offset
  19.     float    mDirection; // the facing angle
  20. }
  21.  
  22. struct Formation 
  23. {
  24.     vector<FormationPosition> mPositions;
  25. }
  26.